package com.example.haiyang.domain;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author haiyang
 * @since 2019-11-23
 */
@TableName("menus_role")
public class MenusRole extends Model<MenusRole> {

    private static final long serialVersionUID = 1L;

    private String id;
    private byte[] mid;
    private byte[] rid;
    private Date createtime;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public byte[] getMid() {
        return mid;
    }

    public void setMid(byte[] mid) {
        this.mid = mid;
    }

    public byte[] getRid() {
        return rid;
    }

    public void setRid(byte[] rid) {
        this.rid = rid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MenusRole{" +
        "id=" + id +
        ", mid=" + mid +
        ", rid=" + rid +
        ", createtime=" + createtime +
        "}";
    }
}
